import 'package:flutter2/utils/string.dart';
import 'package:intl/intl.dart';

extension NumExt on num {
  String formatAmount() {
    return NumberFormat.currency(locale: "es_mx", symbol: r"$").format(this).trimZero();
  }

  String appendZero() {
    if (this >= 10) {
      return toString();
    }
    return "0${toString()}";
  }
}
